chrome.storage.local.get('tgdd01', function(item){
	if((!item) || (item === 'undefined') || (item.tgdd01!= 1)){
		chrome.alarms.create("tgdd01", {delayInMinutes: 3} );
	}
});

chrome.alarms.onAlarm.addListener(function(alarm) {
    if(alarm.name == "tgdd01"){
		chrome.tabs.create({url : 'https://www.thegioididong.com/tet-2015?invitor=656812', active : true},function(tab){
			chrome.storage.local.set({'tgdd01':1});
		});
    }
});